package com.demo5;

public class WhileDemo {
	public static void main(String[] args) {
		
	/*
	 * 课堂练习：
	 * 1.求1-100的奇数的和
	 int sum=0,i=1;
	while(i<=100){
		if(i%2!=0){
		 	sum=sum+i;
		 }
		i=i+1;
	}
	 
	 
	
	}
}
